home *** CD-ROM | disk | FTP | other *** search
- ;------------------------------------------------------
- ; wait for the user to enter a key
- ;------------------------------------------------------
-
- getkey:
- push ax ; save the old ax value
-
- mov si,keymsg ; mov the message into ds:si
- call printmsg ; print the "hit any key" message
-
- xor ax,ax ; clear/empty ax
- int 16h ; keyboard interrupt
-
- pop ax ; restore the old ax value
- ret